import Vue from 'vue'
import Vuex from 'vuex'
import goods from '@/store/modules/goods'
import compound from './modules/compound'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    counter: 0,
  },
  mutations: {
    increment(state) {
      state.counter++
    },
  },
  modules: {
    goods,
    compound
  }
})